home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
WORDMISC
/
WPUTIL.LZH
/
WPINFO.ARC
/
FONTQD.TXT
next >
Wrap
Text File
|
1988-05-16
|
13KB
|
312 lines
This is a "quick and dirty" guide to creating soft font definitions
for WordPerfect v 5.0 with the PTR program. It is NOT
a comprehensive tutorial on the subject, but should serve as an
interim guide until I can get a real tutorial finished and uploaded.
It will work for HP LaserJets and compatibles; some of the
information may be useful for other printers.
1. You need some information about the font before entering the PTR
program. The following is needed:
a. The name of the font file as it exists on your disk.
b. Information about the font definition itself. One way to
obtain this info is from the program FONTINFO, available in
WPSG DL 2 as FONTIN.ARC. The specific info you'll need is:
(1) Orientation
(2) Height, in points
(3) Style (e.g. italic, upright)
(4) Weight (number or name -- e.g. "5" or "bold")
(5) Symbol set (e.g. USASCII or Roman8)
(6) Pitch (non-poportional fonts only)
(7) Type face (name _and_ number)
c. For proportional fonts only, the width of each character in the
font. One way to obtain this information is with GETWIDTH,
which is included (along with some other utilities) in
FONTFL.ARC in WPSG DL 2.
2. Start PTR with the name of the printer definition file; for
example:
PTR HPLASEII.PRS
In general:
To select a menu item, either highlight the item and press
[Enter] or type an asterisk beside the item and press
[Exit] (F7). One method or the other works on every screen;
on some screens, both do.
To de-select (i.e., remove an asterisk), highlight the
item and press [Backspace].
To back up the menu structure, press [Exit].
To see online help (which is very good and context-sensitive),
press [Help] (F3).
To cancel, press [Cancel] (F1).
3. The name of the printer will be highlighted. Press [Enter].
4. A list of functions will appear (this is essentially the PTR
program's "Main Menu"). Highlight "Fonts" and press [Enter].
5. A list of currently defined fonts will appear. Select "Add"
(press "1").
6. PTR will prompt you to highlight a font to use as a pattern and
press [Enter]. Select a font as close as possible to the one you
are trying to define. The closer you can come, the less work you
will have to do in revising the font. In most cases, this will
be if you can match proportional fonts to proportional fonts or
fixed fonts to fixed fonts, if you can match the point sizes, and
if you can match serif to serif or sans-serif to sans-serif.
7. PTR will prompt you to name the font. Do so.
8. PTR will display the list of fonts with the font you named
included and highlighted. Press [Enter].
9. PTR will display the "Fonts" screen, listing a number of
operations you can perform on each font. You will have to
perform any operations affect functions in which your font
differs from that you selected as a pattern.
a. TYPEFACE. As far as I can determine, this selection only
affects the appearance of the font on the print preview
display (WP's Shift-F7 View option). If you don't care about
the appearance of the fonts in View, you can skip this option
entirely.
If the typeface of your font differs from your pattern
(e.g., if you're using a Times Roman font as a pattern for
a Helvetica font), highlight "Typeface" and press [Enter]. The
"Typeface" screen that appears lists all currently defined
typefaces. If the desired typeface is listed, select it by
typing an asterisk (*) beside the name and pressing Exit (F7).
If it does not appear, add it by selecting "Add," choosing a
pattern, and naming the typeface. Then go into the typeface
definition (highlight the typeface and press [Enter]).
Change whatever is necessary in the typeface defintion. (I'm
not going to go into detail on these in this "quick-and-dirty"
guide. The help screens here are pretty good, and with them
you should be able to create a typeface definition that looks
something like the font.)
b. ORIENTATIONS. If the orientation of the font you are
defining differs from the orientation of the pattern font,
so indicate. Do this by:
(1) Selecting Orientations from the Fonts screen (highlight
Orientations and press [Enter].
(2) Typing * beside the correct orientation and pressing
[Exit].
c. CHARACTER MAP. If the character map of the font you are
defining differs from the character map of the parent font,
so indicate. Do this by:
(1) Selecting Character Map from the Fonts screen (highlight
Character Map and press [Enter]).
(2) Typing * beside the correct character map and pressing
[Exit].
(3) If the character map you need is not on the list, you
will have to create a character map -- unless you can
live with one of those listed. Select "Add," choose a
pattern, name a new map, then modify it. How to modify
it is beyond the scope of this quick-and-dirty guide;
follow the help screens.
d. SIZE AND SPACING INFORMATION. If the size and spacing
information of the font you are defining differs from the
size and spacing information of the pattern font, so indicate.
Do this by:
(1) Selecting size and spacing informations from the Fonts
screen (highlight size and spacing informations and press
[Enter]).
(2) Entering the revised information on the Size and Spacing
Information screen. Most of this information can
probably be left "as is," particularly if you have
selected a proportional pattern for a proportional font
(or a fixed pattern for a fixed font) and have matched
point sizes between pattern and defined fonts. Each
field on this screen is defined on a help screen.
(3) For proportional fonts, revise (if necessary) the
proportional spacing table. Highlight the name of the
table (the last item above the double line on the screen)
and press [Enter]. Then enter the character widths for
each character in the font.
(4) When all information has been entered, press [Exit] to
return to the Fonts screen.
e. LOAD AND SELECT STRINGS. You will definitely have to change
the select string, and may have to change the load string.
Do either of these by:
(1) Selecting Load and Select Strings from the Fonts screen
(highlight Load and Select Strings and press [Enter].
(2) Load Font string. This is only necessary if you plan to
have WordPerfect download the font on demand. If you want
WP to do this:
(a) Select a font ID for the font. In general, this will
be a number between 0 and 31.
(b) Highlight Load String and press [Enter]. This will
put you into the editing window.
(c) Enter a string in the following form:
[27]"*c#D"DOWNLOAD("filename")
where # is the font ID and "filename" is the file
name of the font (do NOT enter a pathname to the file
-- that is taken from WP's printer screens at
download time).
For example, if the font ID you've assigned is 27
and the file name is TR12I.SFP, you would enter":
[27]"c*27D"DOWNLOAD("tr12i.sfp")
NOTE: punctuation is important -- enter it exactly
as shown. The 'c' following the [27] must
be lower case and the 'D' following the
font ID must be upper case.
(d) Press [Exit] when you have entered the string.
(2) Select Font string. This must always be modified. This
consists of PTR program representations of the HP
LaserJet command language. The command is of the form:
charset spacing horiz vert style weight typeface
where:
- charset is the character set; USASCII is us, Roman8
is r8, line draw is ld
- spacing indicates whether or not the font is
proportional; fx is fixed, ps is proportional
- horiz indicates the pitch (required for fixed fonts
only); e.g, h12 is 12-pitch or 12 cpi
- vert indicates the height, in points; e.g., v10 is
10 points
- style is ital (italic) or uprite (non-italic)
- weight is the weight: bold, med, or lite (in general,
bold works for weight 3 and above; lite for negative
weights, med for 0 or 1)
- typeface is cour for courier, goth for letter gothic,
helv for helvetica, line for line printer, prest
for prestige, tms for Times Roman
For example, 10 pt Times Roman bold, Roman8 character set
would be entered:
r8 ps v10 uprite bold tms
12 point Courier italic, USASCII typeface would be:
us fx v12 h10 ital med cour
You can only enter variables that have been defined to
the PTR program. If for example, you try to enter a
19-point font (as v19), you'll get an error message,
because v19 is not a known variable. Fortunately, you
can define new variables as needed. Press F9 to access
PTR's list of defined variables. Then add the variable
and the definition to the list:
- Select Add
- Select an appropriate pattern
- Name the variable
- Highlight the new variable name and press [Enter]
- Enter the appropriate string (using the pattern as
a guide)
Defining anything more sophisticated than new point sizes
or pitches will probably require the LaserJet reference
manual or an appropriate alternative.
f. GROUPS and RESOURCES. You can probably get away without
doing anything to these. In any case, they're beyond the
scope of this quick-and-dirty guide.
g. AUTOMATIC FONT CHANGES. If you plan to use your newly
defined font as a base font, you'll need to designate other
fonts for automatic font changes (if your desired fonts
differ from those selected for the pattern font).
(1) Select Automatic Font Changes and press [Enter]
(2) Select the desired feature and press [Enter]. A list of
defined fonts will appear.
(3) Highlight the desired font, type an asterisk, and press
[Exit]
h. SUBSTITUTE FONTS. If you wish to designate substitute fonts,
highlight Substutte Fonts on the Fonts screen and press
[Enter]. The Substitute Fonts screen will appear.
This screen displays all fonts of the current printer definition
and gives a prioritized list of which (if any) can substitute for
the current font. A substitute font is one that WP may use to
print any character not defined in the current font. Up to nine
substitute fonts can be listed in priority of the size and
appearance best matching the current font.
Valid priorities are 1 through 9, with 1 being the highest.
For each font you may type any priority, but the current
priority list is recalculated if necessary to keep all
priorities consecutive. You may type asterisk (*) for
the next unused priority or if priority is unimportant.
i. QUALITY. Ignore for the HP Laserjet and compatibles.
j. MISCELLANEOUS FONT FEATURES. The only one of these you may
want to change is Use Font Only for Automatic Font Changes.
If you do NOT want the font to be usable as a base font:
(1) From the Fonts screen, highlight Miscellaneous Font
Features and press [Enter]
(2) Type an asterisk next to Use Font Only for Automatic
Font Changes
(3) Press [Exit]
10. When you've finished, exit PTR, saving your new printer
definition. Free [Exit] until PTR prompts you with "Save File?"
Answer "Y", then indicate the filename and save it.
I hope this quick-and-dirty guide is some help. If you need further
assistance, use the help screens. If they don't answer your
question, leave me a message on the WPSG forum (sections 0 or 2); if
I can't help you, someone else probably will be able to.
Stu Bloom
CIS ID 72267,3201